package com.himore.api.web.model;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.himore.api.common.core.domain.CustomerBigdecimalSerialize;
import com.himore.api.common.core.domain.CustomerDoubleSerialize;

import java.math.BigDecimal;

public class RecentMonthResultVO {
    private int month;

    @JsonSerialize(using = CustomerBigdecimalSerialize.class)
    private  BigDecimal totalAmount;

    @JsonSerialize(using = CustomerBigdecimalSerialize.class)
    private BigDecimal totalSalary;

    @JsonSerialize(using = CustomerBigdecimalSerialize.class)
    private BigDecimal totalOutcome;

    public BigDecimal getTotalOutcome() {
        return totalOutcome;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public void setTotalOutcome(BigDecimal totalOutcome) {
        this.totalOutcome = totalOutcome;
    }

    public BigDecimal getTotalSalary() {
        return totalSalary;
    }

    public RecentMonthResultVO(int month,double totalSalary,double  totalOutcome,double totalAmount) {
        this.month = month;
        this.totalSalary = new BigDecimal(totalSalary);
        this.totalOutcome = new BigDecimal(totalOutcome);
        this.totalAmount  = new BigDecimal(totalAmount);
    }

    public RecentMonthResultVO() {
    }

    public void setTotalSalary(BigDecimal totalSalary) {
        this.totalSalary = totalSalary;
    }

    public int getMonth() {
        return month;
    }

    public void setMonth(int month) {
        this.month = month;
    }


}
